package com.ykdl.member.kid.beans;

import java.io.Serializable;

import net.wxxr.http.interfaces.IJsonParser;
import android.text.TextUtils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class ActorDialogueBean implements IJsonParser, Serializable {
	
	private int actor_dialogue_id;
    private int dialogue_id;
    private ActorBean last_message;
    private float last_updated_time;
    private int new_message_count;
    private ActorBean owner_actor;
    private ActorBean target_actor;
    
	public int getActor_dialogue_id() {
		return actor_dialogue_id;
	}

	public void setActor_dialogue_id(int actor_dialogue_id) {
		this.actor_dialogue_id = actor_dialogue_id;
	}

	public int getDialogue_id() {
		return dialogue_id;
	}

	public void setDialogue_id(int dialogue_id) {
		this.dialogue_id = dialogue_id;
	}

	public float getLast_updated_time() {
		return last_updated_time;
	}

	public void setLast_updated_time(float last_updated_time) {
		this.last_updated_time = last_updated_time;
	}

	public int getNew_message_count() {
		return new_message_count;
	}

	public void setNew_message_count(int new_message_count) {
		this.new_message_count = new_message_count;
	}
	
	public ActorBean getLast_message() {
		return last_message;
	}

	public void setLast_message(ActorBean last_message) {
		this.last_message = last_message;
	}

	public ActorBean getOwner_actor() {
		return owner_actor;
	}

	public void setOwner_actor(ActorBean owner_actor) {
		this.owner_actor = owner_actor;
	}

	public ActorBean getTarget_actor() {
		return target_actor;
	}

	public void setTarget_actor(ActorBean target_actor) {
		this.target_actor = target_actor;
	}

	@Override
	public IJsonParser parse(String json) throws Exception {
		if (!TextUtils.isEmpty(json)) {
			GsonBuilder builder = new GsonBuilder();
			Gson gson = builder.create();
			return gson.fromJson(json, ActorDialogueBean.class);
		}
		return null;
	}

}
